/*Copyright (c)  Sergey Schekochikhin (Genocidicbunny)
 * created on Oct 5, 2009 11:34:42 PM
 * Will store all buildings on the map. Since each building will know its own player, the map does not need to
 * remember which player the buildings belong to, but instead must merely store the building locations
 */
package Mash.Map;

import Mash.MapObjects.Building.Building;

import java.io.Serializable;


public class BuildingMap implements Serializable{
	   private Building[][] bMap;
	public BuildingMap(int row, int col){
		bMap = new Building[row][col];
	}
	//Set a specified location to the passed Building. If the location already contains a building, return false and do
	//not add the building
	public boolean addBuilding(int row, int col, Building bld){
		if(bMap[row][col] != null)
			return false;
		else{
			bMap[row][col] = bld;
			return true;
		}
	}
}
